#include "SDLComponent.h"
#include <iostream>

SDLComponent::SDLComponent()
{
	m_Scene = SDLEngine::GetInstance()->GetCurrentScene();
	if(!m_Scene->AddComponent(this))
		std::cerr << "SDLComponent ERROR : Could not add the specific component!" << std::endl;
}

SDLComponent::SDLComponent(SDLScene* _scene)
	: m_Scene(_scene)
{
	if(!m_Scene->AddComponent(this))
		std::cerr << "SDLComponent ERROR : Could not add the specific component!" << std::endl;
}

SDLComponent::SDLComponent(const SDLComponent& _source)
	: m_Scene(_source.m_Scene)
{

}

SDLComponent::~SDLComponent()
{
	if(!m_Scene->RemoveComponent(this))
		std::cerr << "SDLComponent ERROR : Could not remove the specific component from the SDLScene's list of SDLComponent" << std::endl;
}

void SDLComponent::Draw()
{

}